<?php

namespace App\Exceptions;

class OrderException extends BaseException
{
    const CODE_1001 = 1001;
    const CODE_1002 = 1002;
    const CODE_2001 = 2001;

    protected int $baseCode = self::BASE_CODE_OF_ORDER;    //

    protected array $showMsg = [
        self::CODE_1001 => '认养订单不存在',
        self::CODE_1002 => '状态不允许操作',

        self::CODE_2001 => '商品订单不存在'
    ];

    function __construct($msg = '', $code = 0)
    {
        parent::__construct($msg, $code);
    }
}
